At the beginning of 1997 you purchased two fixed-rate bonds: a $10,000 bond at 7% annual interest and a $5,000 bond at 5% annual interest. What will be the total worth of these bonds in one year?

Answer:

  1. Calculate the worth of the $5,000 5% bond after one year.
  2. Calculate the worth of the $10,000 7% bond after one year.
  3. Add the two values together to calculate the total worth.
  4. Print the answer.

The first two steps must be done before the others, but they can done in either order. The last two steps must be done last, in that order.

What language?

Notice that the plan for solving the problem does not say what computer programming language you are going to use. In fact, it could be used as a plan for solving the problem with paper and pencil, or a hand calculator!

Good plans should help you think about the problem, and to put the tasks in the right order. They should not confuse you with details.

QUESTION 13:

Translate the plan into a QBasic program.